import { BasicAndQuoteType } from "../commonType";
import { basicEditorEnum, quoteEditorEnum } from "../enum";

/**
 * （清空、等于、退格）操作符实例化时的基本信息对象参数
 */
export interface EditorInfoType extends Pick<BasicAndQuoteType, 'basic' | 'quote'> {
    basic: basicEditorEnum;
    quote: quoteEditorEnum;
}

/**
 * （清空、等于、退格）操作符实例的接口
 */
export interface EditorType  extends Pick<BasicAndQuoteType, 'getBasic' | 'getQuote'> {
    action: Function | undefined;
    getBasic(): basicEditorEnum;
    getQuote(): quoteEditorEnum;
}